package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;

public class V1NodeSystemInfoBuilder extends io.kubernetes.client.openapi.models.V1NodeSystemInfoFluentImpl<io.kubernetes.client.openapi.models.V1NodeSystemInfoBuilder> implements io.kubernetes.client.fluent.VisitableBuilder<io.kubernetes.client.openapi.models.V1NodeSystemInfo,io.kubernetes.client.openapi.models.V1NodeSystemInfoBuilder> {

    io.kubernetes.client.openapi.models.V1NodeSystemInfoFluent<?> fluent;
    java.lang.Boolean validationEnabled;

    public V1NodeSystemInfoBuilder() {
        this(true);
    }

    public V1NodeSystemInfoBuilder(java.lang.Boolean validationEnabled) {
        this(new V1NodeSystemInfo(), validationEnabled);
    }

    public V1NodeSystemInfoBuilder(io.kubernetes.client.openapi.models.V1NodeSystemInfoFluent<?> fluent) {
        this(fluent, true);
    }

    public V1NodeSystemInfoBuilder(io.kubernetes.client.openapi.models.V1NodeSystemInfoFluent<?> fluent,java.lang.Boolean validationEnabled) {
        this(fluent, new V1NodeSystemInfo(), validationEnabled);
    }

    public V1NodeSystemInfoBuilder(io.kubernetes.client.openapi.models.V1NodeSystemInfoFluent<?> fluent,io.kubernetes.client.openapi.models.V1NodeSystemInfo instance) {
        this(fluent, instance, true);
    }

    public V1NodeSystemInfoBuilder(io.kubernetes.client.openapi.models.V1NodeSystemInfoFluent<?> fluent,io.kubernetes.client.openapi.models.V1NodeSystemInfo instance,java.lang.Boolean validationEnabled) {
        this.fluent = fluent; 
        fluent.withArchitecture(instance.getArchitecture());
        
        fluent.withBootID(instance.getBootID());
        
        fluent.withContainerRuntimeVersion(instance.getContainerRuntimeVersion());
        
        fluent.withKernelVersion(instance.getKernelVersion());
        
        fluent.withKubeProxyVersion(instance.getKubeProxyVersion());
        
        fluent.withKubeletVersion(instance.getKubeletVersion());
        
        fluent.withMachineID(instance.getMachineID());
        
        fluent.withOperatingSystem(instance.getOperatingSystem());
        
        fluent.withOsImage(instance.getOsImage());
        
        fluent.withSystemUUID(instance.getSystemUUID());
        
        this.validationEnabled = validationEnabled; 
    }

    public V1NodeSystemInfoBuilder(io.kubernetes.client.openapi.models.V1NodeSystemInfo instance) {
        this(instance,true);
    }

    public V1NodeSystemInfoBuilder(io.kubernetes.client.openapi.models.V1NodeSystemInfo instance,java.lang.Boolean validationEnabled) {
        this.fluent = this; 
        this.withArchitecture(instance.getArchitecture());
        
        this.withBootID(instance.getBootID());
        
        this.withContainerRuntimeVersion(instance.getContainerRuntimeVersion());
        
        this.withKernelVersion(instance.getKernelVersion());
        
        this.withKubeProxyVersion(instance.getKubeProxyVersion());
        
        this.withKubeletVersion(instance.getKubeletVersion());
        
        this.withMachineID(instance.getMachineID());
        
        this.withOperatingSystem(instance.getOperatingSystem());
        
        this.withOsImage(instance.getOsImage());
        
        this.withSystemUUID(instance.getSystemUUID());
        
        this.validationEnabled = validationEnabled; 
    }

    public io.kubernetes.client.openapi.models.V1NodeSystemInfo build() {
        V1NodeSystemInfo buildable = new V1NodeSystemInfo();
        buildable.setArchitecture(fluent.getArchitecture());
        buildable.setBootID(fluent.getBootID());
        buildable.setContainerRuntimeVersion(fluent.getContainerRuntimeVersion());
        buildable.setKernelVersion(fluent.getKernelVersion());
        buildable.setKubeProxyVersion(fluent.getKubeProxyVersion());
        buildable.setKubeletVersion(fluent.getKubeletVersion());
        buildable.setMachineID(fluent.getMachineID());
        buildable.setOperatingSystem(fluent.getOperatingSystem());
        buildable.setOsImage(fluent.getOsImage());
        buildable.setSystemUUID(fluent.getSystemUUID());
        return buildable;
    }

    public boolean equals(java.lang.Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        V1NodeSystemInfoBuilder that = (V1NodeSystemInfoBuilder) o;
        if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;
        
        if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
        return true;
    }

    public int hashCode() {
        return java.util.Objects.hash(fluent,  validationEnabled,  super.hashCode());
    }

}
